From: Andreas Schwab Date: Sat, 27 Feb 2010 14:28:52 +0000 (+0100) Subject: * w32uniscribe.c (uniscribe_check_otf): Fix length check. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~8475 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=ba9e275aae2b3b09c3ab5af1de716efc7d3fac7a;p=emacs.git * w32uniscribe.c (uniscribe_check_otf): Fix length check. --- diff --git a/src/ChangeLog b/src/ChangeLog index e25b39136fa..b0d6e43a21e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2010-02-27 Andreas Schwab + + * w32uniscribe.c (uniscribe_check_otf): Fix length check. + 2010-02-27 Chong Yidong * font.c (font_parse_fcname): Recognize "Book", "Condensed", diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c index f2bd0f44b50..cfdf629ceee 100644 --- a/src/w32uniscribe.c +++ b/src/w32uniscribe.c @@ -666,7 +666,7 @@ int uniscribe_check_otf (font, otf_spec) struct gcpro gcpro1; /* Check the spec is in the right format. */ - if (!CONSP (otf_spec) || Flength (otf_spec) < 3) + if (!CONSP (otf_spec) || XINT (Flength (otf_spec)) < 3) return 0; /* Break otf_spec into its components. */